package com.wangzhixuan.model.vo;

import com.wangzhixuan.commons.constant.ApiCode;
import com.wangzhixuan.commons.scan.MyException;

public class AddCustomerVo {
	
	private String name;
	private String phone;
	private String address;
	private Integer rateId;
	private Integer specId;
	private Integer meterId;
	private Integer groupId;
	private String eleNum;
	private String accountNumber;
	
	public void checkContent() throws MyException{
    	if(name==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
    	if(phone==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
    	if(address==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
    	if(rateId==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
    	if(specId==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
    	if(meterId==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
    	if(groupId==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
    	if(eleNum==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
    	if(accountNumber==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Integer getRateId() {
		return rateId;
	}
	public void setRateId(Integer rateId) {
		this.rateId = rateId;
	}
	public Integer getSpecId() {
		return specId;
	}
	public void setSpecId(Integer specId) {
		this.specId = specId;
	}
	public Integer getMeterId() {
		return meterId;
	}
	public void setMeterId(Integer meterId) {
		this.meterId = meterId;
	}
	public Integer getGroupId() {
		return groupId;
	}
	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}
	public String getEleNum() {
		return eleNum;
	}
	public void setEleNum(String eleNum) {
		this.eleNum = eleNum;
	}
	public String getAccountNumber() {
		return accountNumber;
	}
	public void setAccountNumber(String accountNumber) {
		this.accountNumber = accountNumber;
	}
	
	
}
